import request from '@/utils/request'

// 获取用户个人信息
export const getPersonInfo = function (params) {
  return request({
    url: `/CUser/${params}`,
    method: 'get',
    isToken: true
  })
}

// 重置个人密码
export const resetPassword = function (data) {
  return request({
    method: 'post',
    url: '/CUser/updatePwd',
    data: data,
    isToken: true
  })
}

// 修改用户个人信息
export const changePersonInfo = function (data) {
  return request({
    method: 'post',
    url: '/CUser/changeUserInfo',
    data: data,
    isToken: true
  })
}

// 注销账号
export const cancellationUser = function (data) {
  return request({
    method: 'post',
    url: '/CUser/cancellationUser',
    data: data
  })
}
